package richinfo.delivery.util;

import org.apache.log4j.Logger;

public class AssertUtil {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(AssertUtil.class);

	private AssertUtil() {
		logger.info("");
	}

	/**
	 * string is null or empty
	 * 
	 * @param str
	 * @return boolean
	 */
	public static boolean isNullOrEmpty(String str) {
		boolean result = false;
		if (null == str || str.isEmpty()) {
			result = true;
		}
		return result;
	}

	/**
	 * object is null
	 * 
	 * @param obj
	 * @return
	 */
	public static boolean isNull(Object obj) {
		boolean result = false;
		if (null == obj) {
			result = true;
		}
		return result;
	}

	public static boolean isEmpty(String str) {
		boolean result = false;
		if (str.isEmpty()) {
			result = true;
		}
		return result;
	}
}
